import java.text.DecimalFormat;
import java.util.Scanner;

public class GetScore {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int max = 0, min = 101, sum = 0;
        for (int i = 0; i < n; i++) {
            int cur = scan.nextInt();
            sum += cur;
            if (cur > max) {
                max = cur;
            } else if (cur < min) {
                min = cur;
            }
        }
        double avg = sum / (n * 1.0);
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f", avg);
    }
}
